package com.zrrd.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zrrd.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title WmNewsMaterialMapper
 * @description
 * @create 2023/9/21 16:58
 */
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    void saveRelations(@Param("materialIds") List<Integer> materialIds,
                          @Param("newsId") Integer newsId,
                          @Param("type")Short type);
}
